<?php
/**
 * 主题选项
 * @package WordPress
 * @subpackage wheatv
 */
 
/*获取分类数组*/
$categories = get_categories('hide_empty=0&orderby=name');
$wp_cats = array();
foreach ($categories as $category_list ) {
       $wp_cats[$category_list->cat_ID] = $category_list->cat_name;
}
array_unshift($wp_cats, "所有分类"); 

$options = array (

array( "name" => $themename."选项",
	"type" => "title"),

array( "name" => "全局设置",
	"type" => "section"),
array( "type" => "open"),

array( "name" => "自定义地址栏图标",
	"desc" => "自定义一个16x16像素的小图标，显示在浏览器地址栏",
	"id" => "favicon",
	"type" => "text",
	"std" => ""),	

array( "name" => "显示幻灯片",
	"desc" => "勾选后即启用首页的幻灯片播放模块",
	"id" => "sliderstatus",
	"type" => "checkbox",
	"std" => "0"),
	
array( "name" => "显示首页滚动图片分类",
	"id" => "picnews_cat",
	"type" => "select",
	"options" => $wp_cats,
	"std" => ""),

array( "type" => "close"),
array( "name" => "SEO设置",
	"type" => "section"),
array( "type" => "open"),

array( "name" => "关键词(Keywords)",
	"desc" => "关键词之间用英文逗号分隔",
	"id" => "keywords",
	"type" => "text",
	"std" => ""),

array( "name" => "网站描述(Description)",
	"desc" => "显示在META信息中",
	"id" => "description",
	"type" => "textarea",
	"std" => ""),	

array( "type" => "close"),
array( "name" => "社会化媒体",
	"type" => "section"),
array( "type" => "open"),

array( "name" => "新浪微博",
	"desc" => "",
	"id" => "sina",
	"type" => "text",
	"std" => ""),

array( "name" => "豆瓣",
	"desc" => "",
	"id" => "douban",
	"type" => "text",
	"std" => ""),

array( "name" => "人人",
	"desc" => "",
	"id" => "renren",
	"type" => "text",
	"std" => ""),

array( "type" => "close"),
array( "name" => "页脚设置",
	"type" => "section"),
array( "type" => "open"),

array( "name" => "版权文字",
	"desc" => "填写网站的版权信息，显示在页脚的左边",
	"id" => "copyright",
	"type" => "text",
	"std" => "Copyright © 2011 wheatv. All Rights Reserved"),

array( "name" => "统计代码",
	"desc" => "你可以在这里填写google,cnzz等第三方网站统计代码",
	"id" => "statisticscode",
	"type" => "textarea",
	"std" => ""),	

array( "type" => "close"),
array( "name" => "额外设置",
	"type" => "section"),
array( "type" => "open"),

array( "name" => "附加代码",
	"desc" => "你可以在这里附加CSS样式、JS代码、Meta信息，这些都将被添加到<head></head>之间",
	"id" => "headercode",
	"type" => "textarea",
	"std" => ""),	

array( "type" => "close")
);
?>